-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--[[

    鬼魂

]]--
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


AddPrefabPostInit(
    "ghost",
    function(inst)
        if not TheWorld.ismastersim then
            return
        end

        if inst.components.inspectable == nil then
            return
        end

        local old_GetDescription = inst.components.inspectable.GetDescription
        inst.components.inspectable.GetDescription = function(self,viewer,...)
            if viewer and viewer:HasTag("hutao") and viewer.components.hutao_com_dialogue then
                -- return TUNING.HUTAO_FNS:GetDialogue("ghost_inspect")
                local str = viewer.components.hutao_com_dialogue:GetInspect("ghost_inspect")
                if str then
                    return str
                end
            end
            return old_GetDescription(self,viewer,...)
        end
    end
)


